/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 * 描述: TODO <br/>
 *
 * @author framework generator
 * @date 2022年08月12日
 * @version 2.0
 */
package com.icinfo.cloud.provider.punish.csource.manage.mapper;

import com.icinfo.cloud.provider.punish.csource.manage.dto.FlowRecordDto;
import com.icinfo.cloud.provider.punish.csource.manage.dto.FlowRecordVo;
import com.icinfo.cloud.provider.punish.csource.manage.model.CaseSourceFlowRecord;
import com.icinfo.framework.mybatis.mapper.common.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 描述: 案源登记流程记录表 case_source_flow_record 对应的Mapper接口.<br>
 *
 * @author framework generator
 * @date 2022年08月12日
 */
public interface CaseSourceFlowRecordMapper extends Mapper<CaseSourceFlowRecord> {
    /**
     * 查询流转日志
     * @author liyafeng
     * @date 2022/8/15
      * @param flowRecordDto
     * @return {@link List< FlowRecordVo>}
     */
    List<FlowRecordVo> selectFlowRecordList(FlowRecordDto flowRecordDto);

    /**
     * 根据案源id查询最新的流转记录
     * @param caseSourceId
     * @return
     */
    FlowRecordVo selectFlowRecordByCaseSourceId(@Param("caseSourceId") String caseSourceId);

    /**
     * 根据案源id和阶段code查询最新的流转记录
     * @param caseSourceId
     * @return
     */
    FlowRecordVo selectFlowRecordByCaseSourceIdAndStageType(@Param("caseSourceId") String caseSourceId, @Param("flowStageType") String flowStageType);

    /**
     *
     * @return
     */
    List<CaseSourceFlowRecord> selectList();
}